package userprofile;

import java.util.GregorianCalendar;

public class TourPeriod {
	
	private GregorianCalendar startDate;
	private GregorianCalendar endDate;
	
	public TourPeriod(){
		setStartDate(new GregorianCalendar());
		setEndDate(new GregorianCalendar());
	}
	
	public TourPeriod(int ddS,int mmS, int yyS,int ddE,int mmE, int yyE){
		setStartDate(new GregorianCalendar(yyS,mmS,ddS));
		setEndDate(new GregorianCalendar(yyE,mmE,ddE));
	}
	

	public TourPeriod(int numDay){
		setStartDate(new GregorianCalendar());
		setEndDate(new GregorianCalendar());
		getEndDate().add(GregorianCalendar.DATE, numDay);
	}

	public GregorianCalendar getStartDate() {
		return startDate;
	}

	public void setStartDate(GregorianCalendar startDate) {
		this.startDate = startDate;
	}

	public GregorianCalendar getEndDate() {
		return endDate;
	}

	public void setEndDate(GregorianCalendar endDate) {
		this.endDate = endDate;
	}
	
}
